
// 擦除
void erase(){
  digitalWrite(OE, HIGH);
  digitalWrite(CE, HIGH);
  write_mode();
  
  //reset
  //setByte (0x0000, 0xf0);
  delay(1);
  setByte (0x5555, 0xaa);
  setByte (0x2aaa, 0x55);
  setByte (0x5555, 0x80);
  setByte (0x5555, 0xaa);
  setByte (0x2aaa, 0x55);
  setByte (0x5555, 0x10);
  digitalWrite(CE, HIGH);
  read_mode();
  Serial.println("ok");
}
